@import "common.css";

@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');

html,
body {
	background-color: var(--MAIN-DARK);
	color: white;
	user-select: none;
}

.lobster-regular {
	font-family: "Lobster", sans-serif;
	font-weight: 400;
	font-style: normal;
}

hr {
	color: #eeeeee;
	width: 80%;
	margin-bottom: 20px;
}

.title-bar {
	margin-top: 30px;
}

#uuid {
	width: 300px;
}

.fullscreen-error,
.notify {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #ffffffaa;
	flex-direction: column;
	z-index: 500;
	gap: 50px;
	align-items: center;
	justify-content: center;
}

.notify {
	display: flex;
	;
}

.fullscreen-message,
.button-fs {
	font-family: var(--FONT-NAME), sans-serif;;
	font-style: normal;
	color: white;
	width: 40%;
	font-size: 20px;
	text-align: center;
	padding: 20px;
	border-radius: 10px;
	border: 2px solid white;
	background-color: orangered;
	z-index: 800;
}

.button-row {
	display: flex;
	flex-direction: row;
	gap: 20px;
	padding: 10px;
}

.button-fs {
	background-color: white;
	color: orangered;
}

#uuid>input {
	outline: 0;
	border: 0px;
	text-decoration: none;
	border-bottom: 1px solid #ccc;
}

#uuid-close,
#edit-close {
	width: 18px;
	height: 18px;
	float: right;
	left: 90%;
	position: absolute;
	top: 10%;
	cursor: pointer;
}

.copy-bar>img {
	padding-left: 10px;
}

.umbrella {
	margin: auto;
	height: 80%;
	width: 90%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ---------------------------------------- */

/* This is the div that holds everything */
.ui {
	height: 80%;
	width: 95%;
	display: grid;
	grid-template-columns: [units] 25% [map] var(--MAP-COLUMN-WIDTH);
	grid-template-rows: [row] auto [rows-end];
	grid-column-gap: 30px;
	margin: auto;
}

/* This is the bar  with link icons, etc */

.toolbar,
.unit-toolbar {
	user-select: none;
	display: flex;
	flex-direction: row;
	align-items: center;
	height: 40px;
	width: 100%;
	background-color: #888888;
	margin-left: auto;
	margin-right: auto;
}

.toolbar {
	justify-content: flex-start;
}

.unit-toolbar {
	gap: 10px;
	justify-content: center;
	width: 90%;
	padding-left: 5%;
	padding-right: 5%;
}

.unit-toolbar-losing {
	background-color: var(--MAIN-DARK);
}

.unit-toolbar-winning {
	background-color: var(--SECONDARY-YELLOW);
}

.toolbar>img,
.unit-toolbar>img,
.bike-img {
	width: 20px;
	aspect-ratio: 1.0;
}

.toolbar>img,
.unit-hb-icon, .computer-icon, .invite-button {
	padding: 5px;
}

.toolbar>img {
	margin-left: 5px;
}


.speed-data {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

/* This is the sensitivity slider */
.slider {
	background-color: red;
	padding-top: 50px;
}

/* This is the class that's used by the map api - DON'T DELETE - OR MOVE */
.leaflet-container {
	height: 100%;
	width: 100%;
}

/*-------------------------------------------------------------*/

/* This contains the map */
.map-bag {
	width: 100%;
	height: 100%;
	background-color: #00000000;
	display: flex;
	flex-direction: column;
	gap: 10px;
	border-radius: 10px;
	grid-column: map;
	grid-row: row;
}

/* The columns on the left and right of the screen */
.dashboard, .units {
	font-family: var(--FONT-NAME), sans-serif;
	font-style: normal;
	border-radius: 20px;
	border: 1px solid black;
	grid-row: row;
	text-align: center;
	color: white;
	background-color: var(--SECONDARY-DARK);
}

.units {
	color:var(--MAIN-YELLOW);
	grid-column: units;
}

.dashboard {
	grid-column: dashboard;
}

.unit {
	border-radius: 10px;
	border: 1px solid white;
}

.unit,
.connection {
	overflow: hidden;
}

/* km zero and split */
.column-km0, .install-column {
	display: flex;
	flex-direction: column;
}

.install-column {
	gap: 90px;
}

.install-message-bar {
	margin: auto;
	width:50%;
	text-align: center;
}

/* pulldown menu */
.pulldown,
.pulldown-options {
	display: flex;
	flex-direction: column;
	font-weight: 800;
}

.pulldown-bag {
	position: relative;
	left: 0%;
	/* 0 ..< 72% */
	width: 100px;
}

.pulldown-options {
	z-index: 5000;
	gap: 5px;
	position: absolute;
	padding: 4px;
	margin-top: 4px;
	margin-left: 100%;
	overflow: hidden;
	background-color: var(--MAIN-YELLOW);
	color: black;
	border: 0.5px solid white;
}

.pulldown-options,
.app-download-button {
	border-radius: 8px;
	width: 200px;
	margin: auto;
	text-align: center;
	padding: 20px;
	font-weight: 800;
}

.android {
	background-color: #37c3fe;
}

.ios {
	background-color: #a5d14d;
	color: black;
}

.install-message-bar {
	color: #88dd88;
}

.time-delta {
	text-align: center;
	grid-row: delta;
	margin: auto;
}

.pulldown-options * {
	border-radius: 8px;
	padding: 5px 15px;
}

.pulldown-title {
	z-index: 2;
	background-color: var(--SECONDARY-DARK);
	color: var(--MAIN-YELLOW);
	padding: 2px;
	margin: 10px;
	border-radius: 10px;
	width: 280px;
	text-align: center;
	border:1px solid var(--MAIN-YELLOW)
}

.pulldown-options *:hover {
	background-color: red;
}

.activated {
	background-color: black;
	border: 1px dashed white;
}

.race {
	display: flex;
	flex-direction: column;
	gap: 4px;
	grid-row: race-track;
	width: 100%;
}

.status-bar {
	display: flex;
	flex-direction: row;
	align-content: center;
	justify-content: space-between;
	width: 100%;
	font-family: var(--FONT-NAME), sans-serif;
	font-weight: 200;
	font-style: normal;
	grid-template-columns: [race-track] 80% [delta] 20%;
	background-color: var(--SECONDARY-DARK);
	border: 1px white solid;
	border-radius: 10px;
}

/* This is the div that holds link and it's closure button */
.unit-bag {
	position: relative;
	left: 0;
	top: 0;
	padding-bottom: 20px;
	height: 80px;
}

/* This is the title of the units list with the add unit button */
.column-titlebar {
	padding-top: 20px;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 10px;
	width: inherit;
}

.column-titlebar>img {
	width: 20px;
	height: 20px;
}

/* This is the list within the Dashboard with the timings in them */
.maps-information {
	font-family: var(--FONT-NAME), sans-serif;
	font-weight: 300;
	font-style: normal;
	text-align: left;
	padding: 0.5em;
}

.maps-information>* {
	padding-top: 1em;
	border-radius: 10px;
}

/* This is the div that contains the actual timings */
.details {
	font-family: var(--FONT-NAME), sans-serif;
	font-weight: 400;
	font-style: italic;
}

/* This is the div that says the name of the unit */
.unit-name {
	font-family: var(--FONT-NAME), sans-serif;
	font-weight: 300;
	font-size: 13px;
	text-align: right;
	color: white;
	max-width: 250px;
	white-space: nowrap;
	/*keep text on one line */
	overflow: hidden;
	/*prevent text from being shown outside the border */
	text-overflow: ellipsis;
	/*cut off text with an ellipsis*/
	max-height: 1.5em;
}

/* This is the canvas that holds unit list and canvas */

.canvas-bag {
	position: relative;
	width: 100%;
	height: 100%;
	padding: 1em;
	border-radius: 20px;
	margin-left: auto;
	margin-right: auto;
	grid-column: units;
	grid-row: row;
}

.canvas {
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0em;
	left: 0;
	z-index: 4000;
}

/* This is the connection display in the dashboard */
.connection {
	border-radius: 8px;
	padding: 5px;
	border: 1px solid black;
	font-size: small;
	background-color: #444444;
}

.connection-icons,
.connection-details,
.timestamp,
.unit-status,
.unit-ui-element {
	display: flex;
	flex-direction: row;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	color: white;
}

.unit {
	margin-left: 20px;
	margin-right: 20px;
	background-color: var(--MAIN-DARK);
}

.connection-icons>img {
	width: 40px;
	height: 20px;
}

.close-connection,
.close-unit {
	position: absolute;
	right: 10px;
	top: -5px;
	width: 15px;
	height: 15px;
	z-index: 5000;
}

.unit_B,
.unit_A {
	border-radius: 5px;
	padding: 2px 5px 2px 5px;
	background-color: red;
}

/* The table in the dashboard of links */
.connections {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
}

.time {
	text-align: right;
	font-weight: bold;
	color: white;
}

.timestamp,
.unit-status {
	padding: 5px;
	margin-top: 0px;
}

.rs-pointer, .rs-pointer::before {
	background-color: var(--MAIN-YELLOW) !important;
}
.rs-selected {
	background-color: var(--MAIN-YELLOW) !important;
}

.rs-bg {
	background-color: var(--MAIN-YELLOW) !important;
	opacity: 0.4 !important;
}